//引入接口
import { postUserCartListApi, postUserOrderListApi } from "@/utils/api";

const actions = {
  async getCartList({ commit }, playload) {
    let res = await postUserCartListApi({ uid: playload.userId });
    commit("updateCartList", { list: res.result });
  },
  async getOrderList({ commit }, playload) {
    let res = await postUserOrderListApi({ uid: playload.userId });
    commit("updateOrderList", { list: res.result });
  },
};

export default actions;
